package com.jiangyg.mall.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 类描述：订单操作历史记录
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:14:51
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mo_order_operate_history")
public class OrderOperateHistory implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@TableField("id")
	private Long id;

	/**
	 * 订单id
	 */
	@TableField("order_id")
	private Long orderId;

	/**
	 * 操作人[用户；系统；后台管理员]
	 */
	@TableField("operate_man")
	private String operateMan;

	/**
	 * 操作时间
	 */
	@TableField("create_time")
	private Date createTime;

	/**
	 * 订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
	 */
	@TableField("order_status")
	private Integer orderStatus;

	/**
	 * 备注
	 */
	@TableField("note")
	private String note;

}
